import request from '@/utils/request'

// 查询客户公共池列表
export function listSysCrmKhggc(query) {
  return request({
    url: '/system/crmkhggc/list',
    method: 'get',
    params: query
  })
}

// 查询客户公共池详细
export function getSysCrmKhggc(khId) {
  return request({
    url: '/system/crmkhggc/' + khId,
    method: 'get'
  })
}

// 新增客户公共池
export function addSysCrmKhggc(data) {
  return request({
    url: '/system/crmkhggc',
    method: 'post',
    data: data
  })
}

// 修改客户公共池
export function updateSysCrmKhggc(data) {
  return request({
    url: '/system/crmkhggc',
    method: 'put',
    data: data
  })
}

// 删除客户公共池
export function delSysCrmKhggc(khId) {
  return request({
    url: '/system/crmkhggc/' + khId,
    method: 'delete'
  })
}

export function getInitParams() {
  return request({
    url: '/system/crmkhggc/getInitParams',
    method: 'get'
  })
}

export function getCities(query) {
  return request({
    url: '/system/crmkhggc/getCities',
    method: 'get',
    params: query
  })
}
